<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>生活</title>
    <meta name="Keywords" content="回忆">
    <meta name="Description" content="私人空间">
    <link href="../css/index.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <script src="js/modernizr.js"></script>
    <![endif]-->
</head>
<body style="background: #55b8c9 url(../images/bg.jpg) center 0 scroll no-repeat;width: 100%;height: 100%;background-size:100%;">
<style type="text/css">

    .page-post-detail .comments {
        width: 80%;
    }

    .title4 {
        text-align: center;
        color: #fafafa;
        letter-spacing: 0;
        text-shadow: 0px 1px 0px #999, 0px 2px 0px #888, 0px 3px 0px #777, 0px 4px 0px #666, 0px 5px 0px #555, 0px 6px 0px #444, 0px 7px 0px #333, 0px 8px 7px #001135;
        font-size: 32px;
        margin: 0 auto;
        padding: 6vw 0;

        width: 34em;
    }


    .sidebar {
        display: none;
    }

    .content {
        margin-bottom: 360px;
    }

    .content-wrap {
        width: 100%;
    / / box-sizing: content-box;
        padding: initial !important;
    / / background: url('https://s1.ax1x.com/2020/05/11/YJxcgx.jpg');
    }

    .main-inner {
        width: 100%;
    }

    .sidebar-toggle {
        display: none !important;
    }

    .eye {
        display: none !important;
    }

    .aplayer-body {
        display: none;
    }

    .main {
        padding-bottom: 150px;
        margin-top: 30px !important;
        padding-top: 16em;
    }

    .main-inner {
        margin-top: unset;
    }

    .page-post-detail .post-meta {
        display: none;
    }

    body {
        background-image: unset;
        background-attachment: unset;
        background-size: 100%;
        /*background-position: top left;*/
    }

    }
    .menu .menu-item a {
        font-weight: 300;
        color: #e6eaed;
    }

    .footer-inner {
        padding-left: 0px;
    }

    img:hover {
    / / opacity: 0.8; /*透明度*/
    / / filter: alpha(opacity = 100); /* For IE8 and earlier */
    }

    .imgbox {
        margin-top: 20px;
        padding: 1px 10px;
        width: 100%;
        overflow: hidden;
        height: 250px;
        border-right: 1px solid #bcbcbc;
    }

    .box {
        visibility: visible;
        overflow: auto;
        zoom: 1;
    }

    .box li {
        float: left;
        width: 25%;
        position: relative;
        overflow: hidden;
        text-align: center;
        list-style: none;
        margin: 0;
        /*display: inline;*/
        padding: 0;
        height: 260px;
    }

    .box li span {
        display: block;
        padding: 4% 7% 10% 7%;
        min-height: 80px;
    / / background: #fff;
        font-size: 16px;
        font-weight: 600;
        line-height: 26px;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        color: #3f9;
    }

    img.imgItem {
        padding: unset;
        padding: unset;
        border: unset;
        position: relative;
        padding: 0px;
        height: 100%;
        width: 100%;
    }

    div#posts.posts-expand {
        border: unset;
        padding: unset;
        margin-bottom: 10px;
    }

    .posts-expand .post-body img {
        padding: 0px !important;
    }

    .box p {
        margin-top: -25px;
        display: block;
        background: #121212;
        color: #fff;
        font-size: 14px;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        text-align: center;
    }

    .box span strong {
        background: rgba(0, 0, 0, 0.4);
        padding: 20px;
    }

    .posts-expand .post-title {
        display: none;
    }

    .title {
        margin: 10px auto;
        display: inline-block;
        vertical-align: middle;
    / / background: url(/images/beichen.jpg);
        font: 85px/250px 'ChaletComprimeMilanSixty';
    / / background-position: left bottom !important;
        background-position: center center !important;
        color: #fff;
        background-size: 100% auto !important;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        width: 100%;
        text-align: center;
        border: unset;
        height: 560px;
        cursor: unset !important;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

    @media (max-width: 767px) {
        .box li {
            width: 98%;
        }

        .title {
            height: 200px;
        }

        .box span {
            min-height: 80px;
            border-right: unset;
            font-size: 17px;
        }

        .box p {
            border-right: unset;
            font-size: 12px;

        }

        .posts-expand {
            margin: unset;
        }

        .container .main-inner, .footer-inner, .header-inner {
            width: auto !important;
        }
    }

    @media (min-width: 1600px) {

        .container .main-inner {
            width: 100%;
        }
    }

</style>
<header>
    <div class="quotes">
        <p>初遇时，她的微笑，深深的情、傻劲，永恒的承诺，两个人共度的美丽时刻，一一印在回忆里，一直留恋着她那微微一笑，舍不得离开。</p>
        <div class="text5">记录·回忆</div>
        <div class="flower"><img src="../images/flower.jpg"></div>
    </div>
    <!--nav begin-->
    <div id="nav">
        <ul>
            <li><a href="page1.html">首页</a></li>
            <li><a href="page3.html">碎言碎语</a></li>
            <li><a href="page4.html">生活</a></li>
        </ul>
    </div>
    <!--nav end-->
</header>
<div style="background: white;z-index: 2000">
    <h4 class="title4">岁月永远年轻，我们慢慢老去，你会发现，童心未泯，是一件值得骄傲的事情 </h4>
    <div id="box" class="box"></div>
    <footer style="margin-top:4vw">
        <p>咏与杰的空间</a></p>
    </footer>
</div>

<script type="text/javascript">

    // 相册json
    var json =
        [
            [
                {
                    'title': '唯美背景',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1gepyclhyj5j30v90kudk3.jpg'
                },
                {
                    'title': ' ',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1gepzx8g7dlj30dw08zwei.jpg'
                },
                {
                    'title': ' ',
                    'url': 'https://s1.ax1x.com/2020/05/11/YJxRKK.jpg'
                },
                {
                    'title': ' ',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1geq08gz2gnj30u80kuq66.jpg'
                },
                {
                    'title': ' ',
                    'url': 'https://s1.ax1x.com/2020/05/11/YYpRK0.jpg'
                },
                {
                    'title': ' ',
                    'url': 'https://s1.ax1x.com/2020/05/11/YJxr59.jpg'
                },
                {
                    'title': ' ',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1gepyet7zo5j30rs0kutbg.jpg'
                },
                {
                    'title': ' ',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1gepyf48oszj30v90kutak.jpg'
                },
                {
                    'title': ' ',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1gepyfrc1hlj30du0kut9f.jpg'
                },
                {
                    'title': ' ',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1geq01q3mfxj30dw099t93.jpg'
                },
                {
                    'title': ' ',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1geq01yjv97j30dw0k7jsg.jpg'
                },
                {
                    'title': ' ',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1geq027hxdgj30dw0ij0u2.jpg'
                },
                {
                    'title': ' ',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1geq02mtlb5j30dw0j4wf2.jpg'
                },
                {
                    'title': ' ',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1geq09e3r1wj30dw0kuta4.jpg'
                },
                {
                    'title': ' ',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1geq0cchl2qj30dw0hdta9.jpg'
                }


            ],

            [
                {
                    'title': '一场说走就走的城市旅行',
                    'url': 'https://s1.ax1x.com/2020/05/12/YN4b3F.jpg'
                },
                {
                    'title': ' ',
                    'url': 'https://s1.ax1x.com/2020/05/12/YN4vH1.jpg'
                },
                {
                    'title': ' ',
                    'url': 'https://s1.ax1x.com/2020/05/12/YN4jBR.jpg'
                },
                {
                    'title': ' ',
                    'url': 'https://s1.ax1x.com/2020/05/12/YN4Xu9.jpg'
                },
                {
                    'title': ' ',
                    'url': 'https://s1.ax1x.com/2020/05/12/YN4LjJ.jpg'
                },
                {
                    'title': ' ',
                    'url': 'https://s1.ax1x.com/2020/05/12/YNIxfK.jpg'
                },
                {
                    'title': ' ',
                    'url': 'https://s1.ax1x.com/2020/05/12/YNoSSO.png'
                },
                {
                    'title': ' ',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1gepy1vaa6tj33y8280npf.jpg'
                },
                {
                    'title': ' ',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1gepy1j0fvej33y82807wj.jpg'
                },
                {
                    'title': ' ',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1gepy17sfjfj33y82804qt.jpg'
                },
                {
                    'title': ' ',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1gepy49k6iej33y82801kz.jpg'
                },
                {
                    'title': ' ',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1gepy4qjhy1j33282ao4qs.jpg'
                },
                {
                    'title': ' ',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1gepy5bfhy8j32ao3287wi.jpg'
                },
                {
                    'title': ' ',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1gepy5kyc3mj32ao328b2a.jpg'
                }

            ],

            [
                {
                    'title': '一夫当关，万夫莫开',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1gepxpupjwvj32ao328u10.jpg'
                },
                {
                    'title': ' ',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1gepxoohcd2j33282aoqv6.jpg'
                },
                {
                    'title': ' ',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1gepxp6piozj32ao328hdx.jpg'
                },
                {
                    'title': ' ',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1gepxpkhyxoj32ao328u10.jpg'
                },
                {
                    'title': ' ',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1gepxq72kw0j32ao328qv9.jpg'
                },
                {
                    'title': ' ',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1gepxqhw36gj33282ao4qq.jpg'
                },
                {
                    'title': ' ',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1gepxqqvumxj33282ao1l1.jpg'
                },
                {
                    'title': ' ',
                    'url': 'http://ww1.sinaimg.cn/large/006brE51gy1gepxr7lcyzj33282ao4qs.jpg'
                }

            ]
        ]

    var content = json2Array(json);

    var wid = 250;
    if ((window.innerWidth) > 1200) {
        wid = (window.innerWidth * 3) / 18;
    }
    var box = document.getElementById('box');

    var i = 0;
    for (var i = 0; i < content.length; i++) {
        var conBox = document.createElement("div");
        conBox.id = 'conBox' + i;
        box.appendChild(conBox);
        var item = document.createElement("div");
        var title = content[i][0].title;
        var url = content[i][0].url;
        item.innerHTML = "<button class = 'title' style = 'background: url(" + url + ");'><span style = 'display: inline;'><strong style = 'color:#f0f3f6;' >" + title + "</strong></span></button>";
        conBox.appendChild(item);

        for (var j = 1; j < content[i].length; j++) {
            var _title = content[i][j].title;
            var _url = content[i][j].url;
            var item = document.createElement("li");
            item.innerHTML = "<div class = 'imgbox' id = 'imgbox' style = 'height: " + wid + "px;'><img class = 'imgItem' src='" + _url + "' alt='" + _url + "'></div><span>" + _title + "</span>";
            conBox.appendChild(item);
        }
    }

    //json转二维数组
    function json2Array(arr) {
        for (var i = 0; i < arr.length; i++) {
            var tmpArr = []
            for (var attr in arr[i]) {
                tmpArr.push(arr[i][attr])
            }
            arr[i] = tmpArr
        }
        return arr
    }


</script>
</body>
</html>